package com.tg.service.eventbus;

import com.google.common.eventbus.Subscribe;
import com.tg.service.event.MessageEvent;
import org.springframework.stereotype.Component;

/**
 * Created by linzc on 2018/9/20.
 */
@Component
public class SendFailMailHandler implements EventHandler<MessageEvent> {

    @Subscribe //EventBus 标签
    @Override
    public void handle(MessageEvent event) {
        System.out.println("SendFailMailHandler:" + event);
    }

}
